package com.mjk.common.core.prometheus.annotation;

import org.springframework.stereotype.Component;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 自定义指标注解，系统会扫描改注解，如果类上面有该注解，并且继承io.prometheus.client.Collector类
 * 则系统会自动注册该指标
 */
@Documented
@Target({java.lang.annotation.ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface BeeMetric {
}
